<div id="recent-tabs" class="box">
    <div class="box-header">
        <ul class="nav">
            <li><a class="current" href="#recent-tabs-posts"><?php echo lang('entradas_recientes');?></a></li>
            <li><a href="#recent-tabs-comments"><?php echo lang('comentarios_recientes');?></a></li>
        </ul>
    </div><!-- end .box-header -->
    <div class="list-wrap">
        <ul id="recent-tabs-posts">
            <?php if( $posts ): foreach($posts as $post): ?>
                <li>
                    <a href="<?php echo site_url('front/blog/post/'.$post->entry_id);?>" class="title">
                        <img src="./public/images/post.png" width="40" height="40" alt="Image post"/>
                        <?php echo ucwords($post->entry_name);?>
                    </a>
                    <p class="meta"><?php echo lang('escrito_por');?>&nbsp;
                        <a href="#"><?php echo ucfirst($post->username);?></a>&nbsp;|&nbsp;<?php echo mdate('%n %M %Y %H:%i:%s',human_to_unix($post->entry_date));?>
                    </p>
                </li>
            <?php endforeach; else: ?>
                <h2>No post yet!</h2>
            <?php endif;?>                        
        </ul><!-- end #recent-tabs-posts-->
        <ul id="recent-tabs-comments" class="hide">
            <?php if( $comments ): foreach($comments as $comment): ?>
                <li>
                    <a href="<?php echo site_url('front/blog/post/'.$comment->id);?>" class="title">
                        <img src="./public/images/post.png" width="40" height="40" alt="Image post"/>
                        <?php echo ucwords($comment->comment_name);?>
                    </a>
                    <p class="meta"><?php echo lang('escrito_por');?>&nbsp;
                        <a href="#"><?php echo ucfirst($comment->comment_email);?></a>&nbsp;|&nbsp;<?php echo mdate('%n %M %Y %H:%i:%s',human_to_unix($comment->comment_date));?>
                    </p>
                </li>
            <?php endforeach; else: ?>
                <h2>No commented yet!</h2>
            <?php endif;?> 
        </ul><!-- end #recent-tabs-comments -->
    </div><!-- end .list-wrap -->
</div><!-- end #recent-tabs -->